package com.hujing.springsource.a20;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class Controller1 {

    @GetMapping("/test1")
    public ModelAndView test1() {
        System.out.println("test1");
        return null;
    }

    @PostMapping("/test2")
    public ModelAndView test2(@RequestParam("name") String name){
        System.out.println("test2:" + name);
        return null;
    }

    @PutMapping("/test3")
    public ModelAndView test3(@Token String token){
        System.out.println(token);
        return null;
    }

    @RequestMapping("/test4")
    public ModelAndView test4(){
        System.out.println("test4");
        return null;
    }
}
